package com.lehoon.tomato.service.impl;

import com.lehoon.tomato.model.Goods;
import com.lehoon.tomato.model.StoreGoods;
import com.lehoon.tomato.mapper.StoreGoodsMapper;
import com.lehoon.tomato.model.vo.StoreGoodsGroupVo;
import com.lehoon.tomato.model.vo.StoreGoodsVo;
import com.lehoon.tomato.service.StoreGoodsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wang
 * @since 2020-09-23
 */
@Service
public class StoreGoodsServiceImpl implements StoreGoodsService {

    @Resource
    private StoreGoodsMapper storeGoodsMapper;

    @Override
    public List<StoreGoodsGroupVo> getStoreGoodsList(Integer storeId) {
        return storeGoodsMapper.getStoreGoodsList(storeId);
    }

    @Override
    public StoreGoods getGoods(Integer goodsId) {
        return storeGoodsMapper.getStoreGoodsById(goodsId);
    }
}
